import { createBrowserRouter } from "react-router-dom";

import App from "../App";
import Login from "../views/login/login";
import About from "../views/About";
import Inbox from "../views/Inbox";

const routes = [
    {
      path: "/",
      element: <App/>,
      children: [
          {
            path: "about",
            element: <About />,
          },
          {
            path: "inbox",
            element: <Inbox />,
          },
      ],
    },
    {
        path: "/login",
        element: <Login/>,
    }
  ]


const router = createBrowserRouter(routes);

export default router
